package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 利润统计
 * @author pc
 *
 */
public class ProfitBean {

	private String cid;
	private String kehu_company;
	private String salesman_name;
	private String sales_volume;
	private String sales_cost;
	private String sum_profit;
	private String profit_rate;
	private String time;
	
	public ProfitBean() {
		
	}
	public ProfitBean(Map<String, Object> map) {
		if (!(map.get("cid") == null || map.get("cid").equals(""))) {
    		this.cid = map.get("cid").toString();
		}
    	if (!(map.get("kehu_company") == null || map.get("kehu_company").equals(""))) {
    		this.kehu_company = map.get("kehu_company").toString();
		}
    	if (!(map.get("salesman_name") == null || map.get("salesman_name").equals(""))) {
    		this.salesman_name = map.get("salesman_name").toString();
		}
    	if (!(map.get("sales_volume") == null || map.get("sales_volume").equals(""))) {
    		this.sales_volume = map.get("sales_volume").toString();
		}
    	if (!(map.get("sales_cost") == null || map.get("sales_cost").equals(""))) {
    		this.sales_cost = map.get("sales_cost").toString();
		}
    	if (!(map.get("sum_profit") == null || map.get("sum_profit").equals(""))) {
    		this.sum_profit = map.get("sum_profit").toString();
		}
    	if (!(map.get("profit_rate") == null || map.get("profit_rate").equals(""))) {
    		this.profit_rate = map.get("profit_rate").toString();
		}
    	if (!(map.get("time") == null || map.get("time").equals(""))) {
    		this.time = map.get("time").toString();
		}
	}
	
	public static List<ProfitBean> getBean(List<Map<String, Object>> list) {
		List<ProfitBean> profitBeans = null;
		if (list != null && list.size() > 0) {
			profitBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				profitBeans.add(new ProfitBean(map));
			}
		}
		return profitBeans;
	}
	
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getKehu_company() {
		return kehu_company;
	}
	public void setKehu_company(String kehu_company) {
		this.kehu_company = kehu_company;
	}
	public String getSalesman_name() {
		return salesman_name;
	}
	public void setSalesman_name(String salesman_name) {
		this.salesman_name = salesman_name;
	}
	public String getSales_volume() {
		return sales_volume;
	}
	public void setSales_volume(String sales_volume) {
		this.sales_volume = sales_volume;
	}
	public String getSales_cost() {
		return sales_cost;
	}
	public void setSales_cost(String sales_cost) {
		this.sales_cost = sales_cost;
	}
	public String getSum_profit() {
		return sum_profit;
	}
	public void setSum_profit(String sum_profit) {
		this.sum_profit = sum_profit;
	}
	public String getProfit_rate() {
		return profit_rate;
	}
	public void setProfit_rate(String profit_rate) {
		this.profit_rate = profit_rate;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	
}
